package dongshi.daddy.zab.leadercampaign.bo;

/**
 * 投票对象
 */
public class Vote {
    // 节点名
    private String whoAmI;
    // 集群ID，即本节点在集群中的唯一标识
    private int myid;
    // 任期
    private int epoch;
    // 最大事务ID
    private int lastZxId;

    public String getWhoAmI() {
        return whoAmI;
    }

    public void setWhoAmI(String whoAmI) {
        this.whoAmI = whoAmI;
    }

    public int getMyid() {
        return myid;
    }

    public void setMyid(int myid) {
        this.myid = myid;
    }

    public int getEpoch() {
        return epoch;
    }

    public void setEpoch(int epoch) {
        this.epoch = epoch;
    }

    public int getLastZxId() {
        return lastZxId;
    }

    public void setLastZxId(int lastZxId) {
        this.lastZxId = lastZxId;
    }
}
